package bom.service.i.organization;

import bom.pojo.organization.User;
import bom.pojo.organization.UserRole;

import java.util.List;
import java.util.Map;

/**
 * @Author: Fancyears·Maylos·Maywas
 * @Description:
 * @Date: Created in  2018/11/27 15:00
 * @Modified By:
 */
public interface UserRoleService {
    boolean removeBath(List<UserRole> entityList) throws Exception;

    boolean save(UserRole entity) throws Exception;

    boolean update(UserRole entity) throws Exception;

    Map<String,Object> loadRoles();

    Map<String,Object> update(User entity) throws Exception;

    Map<String,Object> loadRoleTree(UserRole entity);

    Map<String,Object> loadRoleWriteTree(UserRole entity);

    Map<String,Object> removeByBatch(String json) throws Exception;

    UserRole get(UserRole entity);

    Map<String,Object> updateRole(UserRole entity) throws Exception;

    Map<String,Object> saveWritePrivilege(UserRole entity);
}
